import request from '/@/utils/request.ts';

export function getSysParamsList(params: object) {
	return request({
		url: 'plat/sysParams/page',
		method: 'get',
		params,
	});
}

export function getAllSysParamsList(params: object) {
	return request({
		url: 'plat/sysParams/all',
		method: 'get',
		params,
	});
}

export function addSysParams(data: object) {
	return request({
		url: 'plat/sysParams/',
		method: 'POST',
		data: data,
	});
}

export function getSysParamsInfo(paramId: any) {
	return request({
		url: `plat/sysParams/${paramId}`,
		method: 'GET',
	});
}

export function editSysParams(data: object, paramId: any) {
	return request({
		url: `plat/sysParams`,
		method: 'PUT',
		data: data,
	});
}

export function delSysParams(paramId: any) {
	return request({
		url: `plat/sysParams/${paramId}`,
		method: 'DELETE',
	});
}
